package com.tinem.platform.module.starter.jpa.entity.file;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className FileUplaodRecord
 * @description 渠道上传文件配置表
 * @site
 * @company
 * @create 2021-12-22
 */
@Data
@Entity
@ToString
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Table(name="t_file_uplaod_record")
@ApiModel("渠道上传文件配置表")
public class FileUplaodRecord implements Serializable,Cloneable{
    @Id
    @Column(name = "c_id",nullable=true)
    @ApiModelProperty(name = "id", value = "ID",required = true)
    private String id;

    @Column(name = "c_file_type",nullable=true)
    @ApiModelProperty(name = "fileType", value = "文件类型",required = true)
    private String fileType;

    @Column(name = "c_file_path",nullable=true)
    @ApiModelProperty(name = "filePath", value = "文件路径",required = true)
    private String filePath;

    @Column(name = "c_file_url",nullable=true)
    @ApiModelProperty(name = "fileUrl", value = "文件访问url",required = true)
    private String fileUrl;

    @Column(name = "c_upload_channel",nullable=true)
    @ApiModelProperty(name = "uploadChannel", value = "文件上传渠道",required = true)
    private String uploadChannel;

    @Column(name = "c_jwt",nullable=true)
    @ApiModelProperty(name = "jwt", value = "请求的jwt",required = true)
    private String jwt;

    @Column(name = "c_file_size",nullable=true)
    @ApiModelProperty(name = "fileSize", value = "文件大小",required = true)
    private String fileSize;

    @Column(name = "c_file_name",nullable=true)
    @ApiModelProperty(name = "fileName", value = "文件名",required = true)
    private String fileName;

    @Column(name = "c_file_prefix",nullable=true)
    @ApiModelProperty(name = "filePrefix", value = "文件存储路径前缀",required = true)
    private String filePrefix;

    @Version
    @Column(name = "c_revision",nullable=true)
    @ApiModelProperty(name = "revision", value = "乐观锁",required = false)
    private Integer revision;

    @Column(name = "c_created_by",nullable=true)
    @ApiModelProperty(name = "createdBy", value = "创建人",required = false)
    private String createdBy;

    @Column(name = "c_created_time",nullable=true,insertable = false,updatable = false)
    @ApiModelProperty(name = "createdTime", value = "创建时间",required = false)
    private Date createdTime;

    @Column(name = "c_updated_by",nullable=true)
    @ApiModelProperty(name = "updatedBy", value = "更新人",required = false)
    private String updatedBy;

    @Column(name = "c_updated_time",nullable=true,insertable = false,updatable = false)
    @ApiModelProperty(name = "updatedTime", value = "更新时间",required = false)
    private Date updatedTime;

}